// 这是位图传参的测试代码
#include<stdio.h>
#define ONE 1
#define TWO (1<<1)
#define THREE (1<<2)
#define FORE (1<<3)
#define FIVE (1<<4)

void Print(int flag)
{
  if(flag & ONE) printf("1\n");
  if(flag & TWO) printf("2\n");
  if(flag & THREE) printf("3\n");
  if(flag & FORE) printf("4\n");
  if(flag & FIVE) printf("5\n");
}

int main()
{
    //printf("%x\n",ONE);
    //printf("%x\n",TWO);
    //printf("%x\n",THREE);
    //printf("%x\n",FORE);
    //printf("%x\n",FIVE);
    //printf("%x\n",(1<<4));
  Print(ONE);
  printf("--------------------------------\n");
  Print(TWO);
  printf("--------------------------------\n");
  Print(THREE);
  printf("--------------------------------\n");
  Print(FORE);
  printf("--------------------------------\n");
  Print(FIVE);
  printf("--------------------------------\n");
  return 0;
}
